package com.ruoyi.wareManagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wareManagement.mapper.MigrationQueryMapper;
import com.ruoyi.wareManagement.domain.MigrationQuery;
import com.ruoyi.wareManagement.service.IMigrationQueryService;

/**
 * 移库查询Service业务层处理
 * 
 * @author admin
 * @date 2024-07-01
 */
@Service
public class MigrationQueryServiceImpl implements IMigrationQueryService 
{
    @Autowired
    private MigrationQueryMapper migrationQueryMapper;

    /**
     * 查询移库查询
     * 
     * @param migrationId 移库查询主键
     * @return 移库查询
     */
    @Override
    public MigrationQuery selectMigrationQueryByMigrationId(Long migrationId)
    {
        return migrationQueryMapper.selectMigrationQueryByMigrationId(migrationId);
    }

    /**
     * 查询移库查询列表
     * 
     * @param migrationQuery 移库查询
     * @return 移库查询
     */
    @Override
    public List<MigrationQuery> selectMigrationQueryList(MigrationQuery migrationQuery)
    {
        return migrationQueryMapper.selectMigrationQueryList(migrationQuery);
    }

    /**
     * 新增移库查询
     * 
     * @param migrationQuery 移库查询
     * @return 结果
     */
    @Override
    public int insertMigrationQuery(MigrationQuery migrationQuery)
    {
        return migrationQueryMapper.insertMigrationQuery(migrationQuery);
    }

    /**
     * 修改移库查询
     * 
     * @param migrationQuery 移库查询
     * @return 结果
     */
    @Override
    public int updateMigrationQuery(MigrationQuery migrationQuery)
    {
        return migrationQueryMapper.updateMigrationQuery(migrationQuery);
    }

    /**
     * 批量删除移库查询
     * 
     * @param migrationIds 需要删除的移库查询主键
     * @return 结果
     */
    @Override
    public int deleteMigrationQueryByMigrationIds(Long[] migrationIds)
    {
        return migrationQueryMapper.deleteMigrationQueryByMigrationIds(migrationIds);
    }

    /**
     * 删除移库查询信息
     * 
     * @param migrationId 移库查询主键
     * @return 结果
     */
    @Override
    public int deleteMigrationQueryByMigrationId(Long migrationId)
    {
        return migrationQueryMapper.deleteMigrationQueryByMigrationId(migrationId);
    }
}
